﻿<html>
<style>
.overLoading {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #f5f5f5;
            opacity:0.5;
            z-index: 1000;
       }
.layoutLoading {
    display: none;
    position: absolute;
    top: 40%;
    left: 40%;
    width: 20%;
    height: 20%;
    z-index: 1001;
    text-align:center;
    }
</style>
<script type="text/javascript">
function add(key,value)
{
    document.getElementById(key).value = value;
    document.getElementById("form").submit();
    //document.argform.submit();
    //document.getElementById("argsubmit").click();
}
</script>
<SCRIPT language=javascript type=text/javascript src="/static/jquery-1.7.2.min.js"></SCRIPT>
<script type="text/javascript">

function showLoading(show){

    if(show){
       document.getElementById("over").style.display = "block";
       document.getElementById("layout").style.display = "block";
    }else{
       document.getElementById("over").style.display = "none";
       document.getElementById("layout").style.display = "none";
    }
    document.getElementById("form").submit();
}
</script>


<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>自动化测试</title>
</head>

<body style="text-align: center">

<form method="post" name="form" id="form" action="bw_send_submit">
	<p>报文发送测试</p>                                                        
	<table border="1"  align="center" id="table1">
		<tr id="tr_3">
			<td width="42" align="right"><font size="2">IP</font></td>
			<td>
            <input type="text" name="ip" id="textarea" cols="45" rows="1"value="{{ip or ''}}" placeholder="IP 如10.3.8.15" ></input>
            </td>
			<td width="42" align="right"><font size="2">端口</font></td>
			<td>
            <input type="text" name="port" id="textarea" cols="45" rows="1" value="{{port or ''}}" placeholder="端口 如8888" ></input>
            </td>
		</tr>
	</table>
    <p><p><p>
    <table border="1"  align="center" id="table2">
        <tr>
			<td width="82" align="right"><font size="2">请求报文（需要添加报文头）</font></td>
			<td>
            <textarea id="textarea" name="req_bw" cols="100" rows="13" placeholder="如8888" >{{req_bw or ''}}</textarea>
		</tr>
        <tr>
			<td width="82" align="right"><font size="2">响应报文</font></td>
			<td>
            <textarea id="textarea" name="response_bw" cols="100" rows="13">{{response_bw or ''}}</textarea>
		</tr>
	</table>
    <div id="over" class="overLoading">
    </div>
    <div id="layout" class="layoutLoading"><img src="/static/images/loading.gif" /><p>后台正在玩命处理…………</div>

	<p>
    <!--button type="submit" class="submit_button">提交</button-->
    <input  onClick="showLoading(true)" type="button"  value="提交" name="B1">&nbsp;
	<input type="reset" value="重置" name="B2"></p>

	<p style="text-align: middle">版权所有(C) 2012-2017 平欣电子科技有限公司
	<a href="http://www.levelappro.com/">www.levelappro.com&nbsp;</a></p>
            <!--form action="" method="post" id="main_form">
                <input type="text" name="username" class="username" placeholder="请输入您的用户名！" />
                <input type="password" name="password" class="password" placeholder="请输入您的用户密码！" />
                <input type="Captcha" class="Captcha" name="Captcha" placeholder="请输入验证码！" />
				<a href="#" id="get_code_img"><img src="get_code" class="getcode" /></a>
                <button type="submit" class="submit_button">登录</button>
                <div class="error"><span>+</span></div>
            </form-->
		
</form>
</body>

</html>
